ip dhcp pool
This command assigns a pool on a specified interface and enters the pool configuration.
Syntax
ip dhcp pool <interface name> <interface ID>
|
Command |
Description |
|---|---|
|
<interface name> |
Defines interface naming on the interface command. |
|
Interface Name |
Interface Type |
Interface ID |
|---|---|---|
|
gigabitethernet |
GigabitEthernet interface slot and port (VLAN ID is optional) |
[SLOT/PORT.VLANID] |
|
cellular |
Cellular interface ID |
0/0 |
|
gre |
Tunnel GRE ID |
[1-255] |
|
ipip |
Tunnel IPIP ID |
[1-255] |
|
l2tp |
L2TP ID |
[0-99] |
|
pppoe |
PPPoE interface ID |
[1-3] |
|
pptp |
PPTP ID |
[0-99] |
|
vlan |
Vlan ID |
[1-3999] |
|
loopback |
Loopback ID |
[1-5] |
|
bvi |
Bridge interface |
[1-255] |
Default
NA
Related Commands
service dhcp
The ip dhcp pool command is also available from the interface configuration sub-directory. See ip dhcp-server.
Command Mode
Privileged User
Example
This example enters IP DHCP POOL on VLAN 5.
(config data)# ip dhcp pool vlan 5